package com.wuchao.javaclasspratice;

/**
 * 作者：吴超
 * 邮箱：wuchao_19931120@163.com
 * 时间：2021-10-10
 * 描述：
 */

public class Manager extends Employee{

    private double bonus;

    public Manager(String name,double salary,int year,int month,int day){
        super(name, salary, year, month, day);
        bonus = 0;
    }

    public double getSalary(){
        double baseSalary = super.getSalary();
        return baseSalary + bonus;
    }

    public void setBonus(double b){
        bonus = b;
    }
}
